#pragma once
#include "MediaObject.h"
class ListFileMultiMedia: public CWnd
{
	DECLARE_DYNAMIC(ListFileMultiMedia)

public:
	ListFileMultiMedia(void);
	~ListFileMultiMedia(void);

	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	afx_msg void OnLvnItemchangedPlaylist(NMHDR *pNMHDR, LRESULT *pResult);
public:
	int		m_nNumOfPlaylist;
	int		m_nOldNumNumOfPlaylist;
	CListCtrl m_listControlFile;
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	void InitPlayList();
	void AddDataToPlayList(CListCtrl &ctrl, int row, int col, CString str);
	CArray<MediaObject,MediaObject&> arrMediaObjects;
	
};
